<?php

namespace App\Models\Common\EnumData\Vlive;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class EpgFormat
 * @package App\Models\Common\EnumData\Vlive
 * @version December 11, 2017, 10:26 am CST
 *
 * @property string epg_format_no
 * @property string name
 * @property string title
 * @property string short_desc
 * @property string date_template
 * @property timestamp created_at
 * @property timestamp updated_at
 */
class EpgFormat extends Model
{
    use SoftDeletes;


    public $table = 'epg_formats';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'epg_format_no',
        'name',
        'title',
        'short_desc',
        'date_template',
        'created_at',
        'updated_at'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'epg_format_no' => 'string',
        'name' => 'string',
        'title' => 'string',
        'short_desc' => 'string',
        'date_template' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        'epg_format_no' => 'required|max:100|unique:epg_formats,epg_format_no',
        'name' => 'required'
    ];

    
}
